package com.cswangdao.mapper;

import com.cswangdao.domain.dto.UserPageDTO;
import com.cswangdao.domain.model.MarketUser;
import com.cswangdao.domain.po.User;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MarketUserMapper {
    /**
     * @description: 根据Id查询用户信息
     * @param: id
     * @return: User
     */
    public User getUserById(Integer id);

    Page<User> pageQueryInfo(UserPageDTO userPageDTO);

    void updateById(User user);

    MarketUser selectByUsername(@Param("username") String username);
}